package com.yc.cloud.api.enums;

import com.yc.cloud.basic.enums.IEnumCode;
import lombok.AllArgsConstructor;
import lombok.Getter;


@Getter
@AllArgsConstructor
public enum AnswerShowTypeEnums implements IEnumCode {
    TEXT("0", "文本"), IMAGE("1", "图片"), VIDEO("2", "视频"), MODEL("3", "模型"), AUDIO("4", "模型");


    /**
     * 状态码
     */
    final String code;
    /**
     * 消息内容
     */
    final String description;

    public static boolean isValidEnum(String code) {
        for (AnswerShowTypeEnums fundStatusEnum : AnswerShowTypeEnums.values()) {
            if (fundStatusEnum.code.equals(code)) {
                return true;
            }
        }
        return false;
    }
};
